import request from '@/utils/request'

/*获取区域列表*/ 
export function quyu() {
  return request({
    url: '/sini/admin/brand/quyu',
    method: 'get'
  })
}
/*商家列表*/ 
export function getList(params) {
  return request({
    url: '/sini/admin/brand/brandList',
    method: 'get',
    params
  })
}

/*初审*/ 
export function updateAudit(data) {
  return request({
    url: '/sini/admin/brand/updateAudit',
    method: 'post',
    data
  })
}
// 复审
export function updateAuditToReview(data) {
  return request({
    url: '/sini/admin/brand/updateAuditToReview',
    method: 'post',
    data
  })
}
/*获取商家信息*/ 
export function getDetailList(params) {
  return request({
    url: '/sini/admin/brand/brandInformation',
    method: 'get',
    params
  })
}
/*修改商家信息*/ 
export function updateBrand(data) {
  return request({
    url: '/sini/admin/brand/updateBrand',
    method: 'post',
    data
  })
}
// 赠送花粉
export function send(params) {
  return request({
    url: '/sini/admin/brand/SendDust',
    method: 'get',
    params
  })
}
// 编辑
export function updateAdmin(data) {
  return request({
    url: '/sini/admin/brand/updateAdmin',
    method: 'post',
    data
  })
}


// 区域添加
export function quyuAdd(data) {
  return request({
    url: '/sini/admin/quyu/add',
    method: 'post',
    data
  })
}
// 区域删除
export function quyuDelete(params) {
  return request({
    url: '/sini/admin/quyu/delete',
    method: 'get',
    params
  })
}